package com.usian.user.controller;


import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.media.pojos.WmUser;
import com.usian.user.feign.WemediaFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {

    @Autowired
    private WemediaFeign wemediaFeign;

    @RequestMapping("/consumer/user")
    public ResponseResult getUser(@RequestBody WmUser wmUser){
        return wemediaFeign.save(wmUser);
    }
}
